import Filtering from '@/components/filter/index'
import Table from '@/components/table/index'
import Loading from '@/components/loading/index'
import FormTpl from '@/components/form/index'
import Confirm from '@/components/confirm/index'
import Tooltips from '@/components/tooltips/index'
import Tree from '@/components/tree/index'
import ComDialog from '@/components/dialog/index'
import Element from 'element-ui'
import './number'
import formatters from './formatter'
import '@/directive/index'



export default (Vue) => {
  Vue.use(Element)
  Vue.prototype.$formatters = formatters
  Vue.component(Table.name, Table)
  Vue.component(Filtering.name, Filtering)
  Vue.component(Loading.name, Loading)
  Vue.component(FormTpl.name, FormTpl)
  Vue.component(Confirm.name, Confirm)
  Vue.component(Tooltips.name, Tooltips)
  Vue.component(Tree.name, Tree)
  Vue.component(ComDialog.name, ComDialog)
}
